package cn.edu.hitwh.kanlema.service;

import cn.edu.hitwh.kanlema.entity.SeckillVoucher;
import cn.edu.hitwh.kanlema.entity.VoucherOrder;
import cn.edu.hitwh.kanlema.message.VoucherOrderMessage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author vvcoder
 * @since 2025-8-18
 */
public interface IVoucherOrderService extends IService<VoucherOrder> {

    boolean preloadVouchers();

    Long seckillVoucher(Long voucherId);

    void cacheVoucher(SeckillVoucher seckillVoucher);

    void createVoucherOrder(VoucherOrderMessage message);
}
